home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-07-30 | 825 b | 22 lines | [TEXT/ToyS] |
- tell application "QuarkXPress™"
- activate
- if exists (document 1) then
- tell document 1
- set x to display dialog "Select a Type Style for ® and ™." buttons {"Superior", "Superscript", "Cancel"} default button 1
- if button returned of x = "Superior" then
- set style of every character of every story ¬
- where (it is "™") or (it is "®") to ¬
- {on styles:{superior}, off styles:{superscript}}
- else if button returned of x = "Superscript" then
- set style of every character of every story ¬
- where (it is "™") or (it is "®") to ¬
- {on styles:{superscript}, off styles:{superior}}
- else
- --no characters present in document
- end if
- end tell
- display dialog "This script was completed successfully."
- else
- display dialog "You must have a document open to run this script."
- end if
- end tell